﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MiniCrawler.Entity;

namespace MiniCrawler.DataAccess
{
    public class NewsHelper
    {
        public static int AddNews(NewsData data)
        {
            CrwlDataEntities db = new CrwlDataEntities();
            db.NewsDatas.Add(data);
            return db.SaveChanges();
        }
    }
}
